package com.itheima.extends6constructor;

public class Test {
    public static void main(String[] args) {
        //目标:认识子类构造器的特点,再看应用场景
        //子类构造器必须先调用父类的构造器再执行自己的构造器
        Zi z=new Zi();
    }
}

class Zi extends Fu {
    public Zi() {
        System.out.println("子类无参构造器执行");
    }
}


class Fu{
    public Fu() {
        System.out.println("父类无参构造器执行");
    }
}
